<!doctype html>
<html lang="en">
<head>
  <title>修改货物信息</title>
  <meta charset="UTF-8">
  <script type="text/javascript" src="__PUBLIC__/hdjs/jquery-1.11.3.min.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/hdjs/hdjs.css"/>
    <script type="text/javascript" src="__PUBLIC__/hdjs/hdjs.min.js"></script>
  <link href="__PUBLIC__/css/mine.css" type="text/css" rel="stylesheet" />
</head>
<body>
  <div class="div_head">
    <span>
      <span style="float: left;">当前位置是：仓库管理 >>修改货物信息</span>
    </span>
  </div>
  <div class="hd-w700" style="padding:20px;margin:0 auto">
    <form name="form1" method="post" action="__SELF__">
      <input type="hidden" name="g_id" value="{$info.g_id}" />
      <table class="hd-table hd-table-form hd-form">
    <thead>
        <tr>
          <th colspan="2">修改货物信息</th>
        </tr>
    </thead>
        <tr>
          <td class="hd-w120 t_r">输入货物名称：</td>
          <td><input name="g_name" type="text" class="hd-w400" value="{$info.g_name}" /></td>
        </tr>
        <tr>
          <td class="hd-w120 t_r">选择货物单位：</td>
          <td><select name="g_dw_id" class="hd-w50">
          <volist name='dw' id='d'>
            <if condition="$d['dw_id'] eq $info['g_dw_id']">
              <option value="{$d.dw_id}" selected="selected">{$d.dw_name}</option>
              <else />
              <option value="{$d.dw_id}">{$d.dw_name}</option>
              </if>
          </volist>
          </select></td>
        </tr>
        <tr>
          <td class="hd-w120 t_r">输入库存预警数：</td>
          <td><input name="g_yjs" type="text" class="hd-w100" value="{$info.g_yjs}" /></td>
        </tr>
        <tr>
          <td class="hd-w120 t_r">输入货物单个重量：</td>
          <td><input name="g_zl" type="text" class="hd-w100" value="{$info.g_zl}" /></td>
        </tr>
        <tr>
          <td class="hd-w120 t_r">排序：</td>
          <td><input name="g_num" type="text" class="hd-w100" value="{$info.g_num}" /></td>
        </tr>
        <tr>
          <td class="hd-w120 t_r">输入货物备注信息：</td>
          <td><textarea name="g_bz" class="hd-w500 hd-h100">{$info.g_bz}</textarea></td>
        </tr>
        <tr>
          <td class="hd-w120 t_r">货物负责人：</td>
          <td>【{$info.g_fzr}】</td>
        </tr>
        <tr>
          <td colspan="2" align="center"><input type="submit" class="hd-btn hd-btn-default" value="提交"/></td>
        </tr>
      </table>
    </form>
  </div>
  <!--表单验证Start-->
<script>
    $(function () {
        $('form').validate({
            g_name: {
                rule: {
                    required: true
                },
                error: {
                    required: '货物名称不能为空'
                },
                success: '验证通过',
                message: '请输入货物名称'
            },
        })
    })
</script>
<!--表单验证End-->
    </body>
</html>